-- GENERATED SPELL FOR [Lost Soul] --


function spell0_1531(pUnit, Event) --@Wailing Dead,Self--
pUnit:FullCastSpellOnTarget(7713,pUnit)
pUnit:RegisterEvent('Sorts_1531', 6333, 1)
end

function Sorts_1531(pUnit, Event)
local choix_sorts_1531 = math.random(0, 0)
if choix_sorts_1531 == 0 then
pUnit:RegisterEvent('spell0_1531', 1, 1)
end
end

function mob1531_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_1531', math.random(1500, 3000), 1)
end

function mob1531_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob1531_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob1531_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(1531, 1, 'mob1531_Action')
RegisterUnitEvent(1531, 2, 'mob1531_Leave')
RegisterUnitEvent(1531, 3, 'mob1531_Kill')
RegisterUnitEvent(1531, 4, 'mob1531_Die')
